package com.ladlee.controller;

import com.ladlee.utils.ResultUtils;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: dingchang
 * @Date: 2018/12/25 09:41
 * @Description: session失效
 */
@RestController
public class SessionController {

    @GetMapping("/session/invalid")
    @ResponseStatus(code = HttpStatus.UNAUTHORIZED)
    public Object sessionInvalid(){
        return ResultUtils.error(HttpStatus.UNAUTHORIZED.value(),"session失效!");
    }
}
